﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteMain.Master" AutoEventWireup="true"
    CodeBehind="Recuperar.aspx.cs" Inherits="ShoppingCart.WebSite.Recuperar" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        function ValidarForm() {
            var val = true;

            if (document.getElementById('<%= txtUsername.ClientID %>').value == '') {
                val = false;
            }

            if (!val) {
                alert('Debe ingresar su numero de DNI.');
                return false;
            }
            else {
                return true;
            }
        }      
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="RightSide">
        <div class="bredCrum">
            <h4 style="text-align: center;">
                <a class="select">Recuperar Contrasenia</a>
            </h4>
        </div>
        <div class="cartDetail">
            <fieldset style="padding: 10px;">
                <br />
                <table cellspacing="5" style="margin-left: auto; margin-right: auto;">
                    <tr>
                        <td align="center">
                            N&uacute;mero de DNI :&nbsp;&nbsp;&nbsp;
                        </td>
                        <td>
                            <asp:TextBox ID="txtUsername" runat="server" MaxLength="8" Width="160px" />
                            <cc1:MaskedEditExtender ID="meeDNI" TargetControlID="txtUsername" runat="server"
                                Mask="99999999" MaskType="Number" />
                            <cc1:TextBoxWatermarkExtender ID="tbwNumeroDocumento" runat="server" TargetControlID="txtUsername"
                                WatermarkText="Ingresar..." WatermarkCssClass="watermarked" />
                        </td>
                        <td>
                            <asp:Button ID="btnRecuperar" runat="server" Text="Enviar Solicitud" Width="120px"
                                OnClick="BtnEnviarClick" OnClientClick="return ValidarForm();" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
        <div class="clr">
        </div>
    </div>
</asp:Content>
